home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2001 May / may_2001.iso / intercd / root / Html / ^CutePage / data1.cab / JsBox_Template / directory_PageletServer.JsBox.pgt < prev    next >
Encoding:
Text File  |  2000-05-12  |  1.2 KB  |  45 lines

  1. ========== Description Part Begin ==========
  2. Title = directory
  3. ProgID = PageletServer.JsBox
  4. LastUpdateTime = 36430.696331019
  5. PreviewPath = _pgtres/
  6. Description = show the path and to visit
  7. ========== Description Part End ==========
  8.  
  9. ========== Parameter Part Begin ==========
  10. FileDirFont = Arial,Courier
  11. FileDirPara = Center,f2f4a8,1,600,c0c0c0
  12. JsBoxType = 5
  13. ========== Parameter Part End ==========
  14.  
  15. ========== Resource Part Begin ==========
  16. Resource Number = 0
  17. ========== Resource Part End ==========
  18.  
  19. ========== HTML Part Begin ==========
  20. Segment Number = 1
  21. Segment Position = cursor
  22. <table width=600 border="1" align="Center">
  23. <tr bgcolor="f2f4a8">
  24. <td>
  25. <font face="Arial,Courier" color="#c0c0c0">
  26. <script language="JavaScript">
  27. var path = "";
  28. var href = document.location.href;
  29. var s = href.split("/");
  30.  for (var i=2;i<(s.length-1);i++) {
  31.         path+="<A HREF=\""+href.substring(0,href.indexOf(s[i])+s[i].length)+"/\">"+s[i]+"</A>/";
  32. }
  33. i=s.length-1;
  34. path+="<A HREF=\""+href.substring(0,href.indexOf(s[i])+s[i].length)+"\">"+s[i]+"</A>";
  35. var url = window.location.protocol + "//" + path;
  36. document.writeln("Current File Path "+url);
  37. </script>
  38. </td>
  39. </tr>
  40. </font>
  41. </table>
  42. ===== Segment End =====
  43. ========== HTML Part End ==========
  44.  
  45.